class PhotosController < ApplicationController
   def new
     if request.post?
      @photo = Photo.new(params[:photo])
      if @photo.save
        render :text=>'OK'
      else
        render :text=>@photo.errors.full_messages
      end
     end
   end
end